THIS_FILE_PATH = $(FC_BASE)/platform/arch/arm/cortex_M/stm32f4
include $(THIS_FILE_PATH)/../cortexm.mk

CHIP_DIR := $(ARCH_DIR)/stm32f4
STD_PERIPH_DIR := $(CHIP_DIR)/Source

INCLUDE += -I$(CHIP_DIR)/Include

vpath %.c $(STD_PERIPH_DIR)

LIBSRC += stm32f4xx_hal.c \
	stm32f4xx_hal_cortex.c \
	stm32f4xx_hal_dma.c \
	stm32f4xx_hal_flash.c \
	stm32f4xx_hal_flash_ex.c \
	stm32f4xx_hal_gpio.c \
	stm32f4xx_hal_pwr.c \
	stm32f4xx_hal_pwr_ex.c \
	stm32f4xx_hal_rcc.c \
	stm32f4xx_hal_rcc_ex.c \
	stm32f4xx_hal_spi.c \
	stm32f4xx_hal_tim.c \
	stm32f4xx_hal_tim_ex.c \
	stm32f4xx_hal_uart.c \
	stm32f4xx_hal_usart.c \
	stm32f4xx_hal_dac.c \
	stm32f4xx_hal_dac_ex.c
